/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *   gbx-emu - screen.h                                                  *
 *   gbx-emu homepage: http://code.google.com/p/gbx-emu/                   *
 *   Copyright (C) 2009 olejl77@gmail.com                                  *
 *                                                                         *
 *   This program is free software: you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation, either version 3 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 *   This program is distributed in the hope that it will be useful,       *
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the          *
 *   GNU General Public License for more details.                          *
 *                                                                         *
 *   You should have received a copy of the GNU General Public License     *
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>. *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#ifndef SCREEN_H
#define SCREEN_H
#include "common.h"

class QImage;
class Gameboy;
class Cpu;
class Memory;
class Log;
class Screen : public Common
{
private:
    QImage *_image;
    Gameboy *_gb;
    Cpu *_cpu;
    Memory *_mem;
    Log *_log;
    void resetImage();

public:
    Screen(Gameboy *ptr);
    ~Screen();
    void setCpu(Cpu *ptr) { _cpu = ptr; }
    void setMemory(Memory *ptr) { _mem = ptr; }
    void setImage(QImage *image);
    void setLog(Log *ptr) { _log = ptr; }

    void DrawLine(u8 lcdc, u8 ly, u8 wy, u8 wx, u8 scy, u8 scx);
};


#endif // SCREEN_H
